package com.qfedu.lc.app.service;

import com.qfedu.lc.app.config.OpenFeignConfig;
import com.qfedu.lc.common.param.UserAdd;
import com.qfedu.lc.common.param.UserLogin;
import com.qfedu.lc.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * --- 年薪百万 ---
 * ---So easy---
 *
 * @author ZhiHuiJun
 * @motto 学习都是人上人
 * @desc 就是很帅很优秀
 * @CC 每天漂亮、幸福、快乐、自由
 */
@Service
@FeignClient(value = "lc-userserver",configuration = OpenFeignConfig.class)
public interface UserFeign {
    @RequestMapping("/user/register")
    R register(UserAdd userAdd);

    @RequestMapping("/user/loginpass")
    R login(UserLogin userLogin);

    @RequestMapping("/user/logincode")
    R logincode(UserLogin userLogin);

    @RequestMapping(value = "/user/logout",method = RequestMethod.GET)
    R logout();
}
